package com.leetcode.contest;

/**
 * @author `RKC`
 * @date 2021/11/4 9:29
 */
public class LC2057值相等的最小索引 {

    public static int smallestEqual(int[] nums) {
        for (int i = 0; i < nums.length; i++) {
            if (i % 10 == nums[i]) {
                return i;
            }
        }
        return -1;
    }
}
